package co.edu.uniandes.webdesktop.chat.server.mundo.serviceImpl;

import co.edu.uniandes.webdesktop.chat.client.mundo.Amigo;
import co.edu.uniandes.webdesktop.chat.client.mundo.login.LoginService;
import co.edu.uniandes.webdesktop.chat.server.mundo.AdminBD;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import java.util.Random;

public class AgregarAmigoServiceImpl extends RemoteServiceServlet implements LoginService {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public Amigo[] autenticar(String login, String pass)
	{ 
		if (login != null && pass != null) {
			return AdminBD.instance.autenticar( login.trim(), pass.trim());
		}
		return null;
	}
	

}